package com.spdg.ring.xml;

import cn.wolf.xml.Parser;

/**
 * <p>Title: XML解析工厂类       </p>
 * <p>Description: 
 *  通过该工厂类，获取相应的解析器
 * </p>
 * <p>@author: Eric.wsd                </p>
 * <p>Copyright: Copyright (c) 2012    </p>
 * <p>Company: HX Co., Ltd.          </p>
 * <p>Create Time: 2012-10-25             </p>
 * <p>Update Time:                     </p>
 * <p>Updater:                         </p>
 * <p>Update Comments:                 </p>
 */
public class XmlParseFactory {

	public static final int CONTENT_PARSER = 2; // 内容解析类

	/**
	 * 新建解析器
	 * @param parserType
	 * 		解析器类型
	 * @return
	 * 		parser, if there is not parserType which param, return null
	 */
	public static Parser creator(int parserType) {
		switch (parserType) {

		case CONTENT_PARSER:
			return new ContentParser();
		default:
			return null;
		}
	}
}
